﻿/******************************************************************
** auth: wei.huazhong
** date: 8/17/2020 14:38:16
** desc:
******************************************************************/

using System;
using System.Collections.Generic;
using static System.String;
using System.Text;
using IServices;
using Models;
using Microsoft.Extensions.Options;
using System.Linq;
using DAL;

namespace Services
{
    public class RoleService : IRoleService
    {
        private MockDAL _dal;

        public RoleService(MockDAL dal)
        {
            _dal = dal;
        }

        public Role GetByID(int id)
        {
            throw new NotImplementedException();
        }

        public IEnumerable<Role> GetRolesByUserID(int userID)
        {
            return _dal.GetRolesByUserID(userID);
        }
    }
}
